#!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging
import os
LOG = logging.getLogger("inject")
formatter = logging.Formatter('[INJECT]%(levelname)s %(funcName)s %(asctime)s %(message)s', '%y-%m-%d %H:%M:%S')

fh = logging.FileHandler(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'inject_plugin.log'))
fh.setFormatter(formatter)

ch = logging.StreamHandler()
ch.setFormatter(formatter)

LOG.addHandler(fh)
LOG.addHandler(ch)
LOG.setLevel(logging.DEBUG)
